import { IPackNifi } from "src/inter"
//
import kafka from "./kafka"
import Nifi from "src/nifi";


//
const t = [kafka]
//
const md = new Map<string, IPackNifi.CellMeatadata>()
//
const useProcessor = (nifi:Nifi) => {
    for(let f of t){
        const d = f(nifi)
        const name = d.type;
        for(const n of new Array().concat(name)){
            md.set(n,d)
        }
    }

    return md
}

export default useProcessor;